import React from 'react'
import { LocaleProvider } from 'antd'
import CN from 'antd/lib/locale-provider/zh_CN'
import { Provider } from 'react-redux'
import { HashRouter as Router } from 'react-router-dom'
import { hot } from 'react-hot-loader'
import View from './View'
import store from '../store'

const App = () => (
    <LocaleProvider locale={CN}>
        <Provider store={store}>
            <Router><View /></Router>
        </Provider>
    </LocaleProvider>
)

export default hot(module)(App)
